package com.dtzhejiang.social.supervision.risk.engine.core.task.tasklet;

import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class MyTask {
    @Retryable(value = Exception.class, maxAttempts = 3, backoff = @Backoff(delay = 2000L, multiplier = 2))
    public void myTest() {
        System.out.println("123456"+ new Date());
    }

}
